<?php
	/**
	 * 查询某个应用下通过商品转链和直播间转链产生的订单
	 * Created by:
	 * User: wangs
	 * Date: 2024/5/7
	 */
	declare (strict_types=1);

	namespace pangolin\sdk\api;

	use pangolin\sdk\http\PopBaseHttpRequest;

	class OrderSearchRequest extends PopBaseHttpRequest
	{
		private  $cursor=null;//游标

		private  $count=null;//数量，默认20，最大允许50

		private  $order_id_list=null;//订单id列表

		private  $pay_time_begin=null;//支付时间起始，单位：秒

		private  $pay_time_end=null;//支付时间结束，单位：秒

		private  $update_time_begin=null;//更新时间起始，单位：秒

		private  $update_time_end=null;//更新时间结束，单位：秒


		public function getType()
		{
			// TODO: Implement getType() method.
			return '/life/order/search';
		}

		public function setUserParams(&$var)
		{
			// TODO: Implement setUserParams() method.
			$this->setUserParam($var,'cursor',$this->cursor);
			$this->setUserParam($var,'count',$this->count);
			$this->setUserParam($var,'order_id_list',$this->order_id_list);
			$this->setUserParam($var,'pay_time_begin',$this->pay_time_begin);
			$this->setUserParam($var,'pay_time_end',$this->pay_time_end);
			$this->setUserParam($var,'update_time_begin',$this->update_time_begin);
			$this->setUserParam($var,'update_time_end',$this->update_time_end);
		}


		public function setCount($count){
			$this->count=intval($count);
		}

		public function setCursor($cursor){
			$this->cursor=$cursor;
		}

		public function setOrderIdList($order_id_list){
			$this->order_id_list=$order_id_list;
		}

		public function setPayTimeBegin($pay_time_begin){
			$this->pay_time_begin=intval($pay_time_begin);
		}

		public function setPayTimeEnd($pay_time_end){
			$this->pay_time_end=intval($pay_time_end);
		}

		public function setUpdateTimeBegin($update_time_begin){
			$this->update_time_begin=intval($update_time_begin);
		}

		public function setUpdateTimeEnd($update_time_end){
			$this->update_time_end=intval($update_time_end);
		}

	}